home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 August
/
Macworld (1997-08).dmg
/
Serious Demos
/
Crimson Demo
/
Crimson Demos
/
Customer File
/
Common
next >
Wrap
Text File
|
1997-06-17
|
516b
|
25 lines
Procedure Read_File() Public
Local CurrRec As Integer
Local CustStruct As Structure
Local Cust_no As Integer
Local Cust_name As String [30]
Local Cust_addr As String [255]
Local Cust_phone As String [16]
Local Cust_fax As String [16]
Local Cust_email As String [30]
Local Cust_location As Integer
Endstruct
CurrRec=0
Repeat
Inc CurrRec
Get #1,CurrRec,CustStruct
If ERR
NextFreeRec=CurrRec
Else
LocateForm.LBox.InsertRow(CurrRec,Cust_name)
Endif
Until ERR
Return